<?php
/**
 * 机台视图类
 */
 class SaleViewModel extends ViewModel {
     
    protected $viewFields = array(
        'onsale'  			=>array('id', 'rulename', 'rulefood', 'price', 'start_time' => 'start', 'stop_time' => 'end', 'ruleregion', 'time', '_type' => 'left'),
		'onsalecategory'  	=>array('name' => 'rulecategory', '_on'=>'onsalecategory.id=onsale.rulecategoryid')
	);
	
 }
 
